package sy;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.github.kevinsawicki.http.HttpRequest;

/**
 * Created by Administrator on 2017/4/27.
 */
public class test {
	public String accesstoken(){
		String url = "http://192.168.1.100:8888/findObj?id=78a7cad7-69cf-4eb9-a760-79919bc8fc18";
		HttpRequest request = HttpRequest.get(url);
		//针对单项证书给予忽略（注意，双向证书需要导入证书文件）
		request.trustAllCerts();
		//信任所有地址
		request.trustAllHosts();
		String response = request.body();
		return response;
	}

	public static void main(String[] args){
		String a = new test().accesstoken();
		System.out.print(a);
	}
}
